// 路由切换时过场动画
import React from "react";
import Loadable from "react-loadable";
const loadingComponent = () => {
  return <div>正在去到下一个页面...</div>;
};
export default (loader, loading = loadingComponent) => {
  return Loadable({
    loader,
    loading
  });
};
